package io.renren.modules.app.service;

import io.renren.modules.app.entity.CarouselEntity;

import java.util.List;
import java.util.Map;

/**
 * 轮播广告
 * 
 * @author chaolemen
 * @email 2698481037@qq.com
 * @date 2018-01-06 23:38:06
 */
public interface CarouselService {
	
	CarouselEntity queryObject(Long id);
	
	List<CarouselEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(CarouselEntity carousel);
	
	void update(CarouselEntity carousel);
	
	void delete(Long id);
	
	void deleteBatch(Long[] ids);

	/**
	 * 有效的列表
	 * @return
	 */
	List<CarouselEntity> queryEffectiveList();
}
